Fix the example xend init.d script so it correctly detects when it is running
authorapeace@paploo.uk.xensource.com <apeace@paploo.uk.xensource.com>
Thu, 6 Apr 2006 13:58:55 +0000 (14:58 +0100)
committerapeace@paploo.uk.xensource.com <apeace@paploo.uk.xensource.com>
Thu, 6 Apr 2006 13:58:55 +0000 (14:58 +0100)
in a guest.

Signed-off by: Andrew Peace <andrew@xensource.com>

tools/examples/init.d/xend

index c789d5d28dd949bca3975aebe75fd7c9a4195230..8ad407637c6d7b98573479bb3bb971dd90b731d2 100755 (executable)
@@ -7,7 +7,7 @@
 # chkconfig: 2345 98 01
 # description: Starts and stops the Xen control daemon.
 
-if ! [ -e /proc/xen/privcmd ]; then
+if ! grep -q "control_d" /proc/xen/capabilities ; then
        exit 0
 fi